//
//  SystemMessageViewController.m
//  OperationPro
//
//  Created by yaxue wang on 16/11/4.
//  Copyright © 2016年 展鸿科技. All rights reserved.
//

#import "SystemMessageViewController.h"
#import "SystemTable.h"
#import "MessageViewController.h"
@interface SystemMessageViewController ()

@end

@implementation SystemMessageViewController

- (void)initView
{
    [super initView];
    [self setTitle:@"系统通知"];
    __block typeof(self) blockself = self;
    
    [self.navBar setBackAction:^{
        if([blockself.type isEqualToString:@"推送"]) {
            MessageViewController *messVc=[[MessageViewController alloc]init];
            messVc.type=blockself.type;
            [blockself.navigationController pushViewController:messVc animated:NO];
        }else  {
            [blockself backController];
            
        }
        
    }];
    self.hide=NO;
    SystemTable*systemView =[[SystemTable alloc]initWithFrame:CGRectMake(0, 64, WindowWidth, WindowHeight-64)];
    systemView.backgroundColor=[UIColor clearColor];
    [self.view addSubview:systemView];
  
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
